const mongoose = require("mongoose");

const schema = new mongoose.Schema({
    goodsname: String,
    price: Number,
    des: String,
    thumb: Array,
    sellerID: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: "seller"
    }
})

module.exports = mongoose.model("goods",schema)